<script>
export default {
    mpType: 'app',
    created () {
    // 调用API从本地缓存中获取数据
        const logs = wx.getStorageSync('logs') || []
        logs.unshift(Date.now())
        wx.setStorageSync('logs', logs)

        console.log('app created and cache logs by setStorageSync')
    }
}
</script>

<style lang='stylus'>
*
    box-sizing:border-box
page
    height:100%
    background: #f2f2f2
    font-size: 28rpx
.container
    display: flex
    flex-direction: column
    align-items: center
    justify-content: space-between
    box-sizing: border-box

.w750
    width: 750rpx

.i-cell
    border-bottom:1px solid #efefef
    position:relative
    padding:12px 15px
    display:flex
    background:#fff
    align-items:center
    line-height:1.4
    font-size:14px
    overflow:hidden
    .i-input-bd
        flex 1
        .i-cell-text
            line-height:24px
            font-size:14px
    .i-cell-ft
        position: relative
        text-align: right
        color: #495060
    &.i-cell-access
        .i-cell-ft
            padding-right: 13px
            &:after
                content: " "
                display: inline-block
                width: 6px
                height: 6px
                position: absolute
                top: 50%
                right: 2px
                border-width: 2px 2px 0 0
                border-color: #dddee1
                border-style: solid
                transform: translateY(-50%) matrix(.71, .71, -.71, .71, 0, 0)
.i-cell--required
    overflow: visible
    &:before
        content: '*'
        position: absolute
        left: 2px
        font-size: 14px
        color: #ff1111
.i-input
    padding:7px 15px
    color:#495060
    font-size: 14px
    .i-input-title
        color:#000
        min-width:55px
        padding-right:10px
        text-align:justify
        text-align-last justify
    .i-input-input
        flex:1
        line-height:1.6
        padding:4px 0
        min-height:22px
        height:auto
        font-size:14px
        color: #007aff
</style>
